package com.cccyy.data;

import cn.hutool.core.util.StrUtil;

public class DrawIOInfo {

    private static final String[] nameCh = {
            "通知开关表|acc_inform",
            "系统菜单权限表|acc_sys_menu",
            "系统密钥对表|acc_sys_pwd_key",
            "角色表|acc_sys_role",
            "角色与菜单对应关系表|acc_sys_role_menu",
            "用户与角色对应关系表|acc_sys_user_role",
            "后管财富网点信息表|acc_wealth_network",
            "序列表|id_factory",
            "渠道日志表|ilo_channel_log",
            "意见反馈审核表|ope_advise_audit",
            "意见反馈记录表|ope_advise_info",
            "附件表|ope_annex",
            "运营公告展示记录表|ope_announce_read",
            "运营公告表生效表|ope_announcement",
            "运营公告临时表|ope_announcement_temp",
            "海报|ope_app_poster",
            "版本|ope_app_version",
            "公司公告|ope_appcompanyinformation",
            "文章信息表|ope_article",
            "文章段落信息表|ope_articlecontent",
            "文章所属模块信息表|ope_artmodule",
            "banner|ope_banner",
            "banner区域|ope_banner_area",
            "分类|ope_categroy_menu",
            "省市县表|ope_city",
            "公司公告客户阅读表|ope_companyinfo_his",
            "公司公告生效表|ope_companyinformation",
            "节假日生效表|ope_holiday_festival",
            "产品热门信息展示表|ope_hot_product_info",
            "BAnner图片信息表|ope_imageinfo",
            "Banner图片场景信息表|ope_imagetype",
            "投研文章表|ope_invest_article",
            "直播生效表|ope_live_broadcast",
            "消息内容|ope_message_article",
            "消息配置生效表|ope_message_conf",
            "消息发送主键维护表|ope_message_counter",
            "消息事件表|ope_message_event",
            "信息发送记录表|ope_message_send_his",
            "消息类型|ope_message_type",
            "群体信息发送记录表|ope_messagecolony_send_his",
            "国际表|ope_nationality",
            "导航区域|ope_navigation_area",
            "导航区域菜单|ope_navigation_area_menu",
            "导航配置|ope_navigation_conf",
            "导航菜单|ope_navigation_menu",
            "推送用户流水名单|ope_pushuser",
            "推送名单记录表|ope_pushuserdata",
            "类型|ope_station_type",
            "站内信类型APP端配置表|ope_station_type_conf",
            "站内信类型临时表|ope_station_type_temp",
            "字典项目表|ope_tdict_item",
            "节假日表|ope_topenday",
            "升级公告展示记录查询|ope_update_record",
            "升级公告表|ope_upgrade_announcement",
            "财富讲堂生效表|ope_wealth_lecture",
            "财富讲堂类型表|ope_wealth_lecture_module",
            "产品首页展示管理表|pdt_homemanage",
            "后台管理记录表|pdt_manage_info",
            "搜索内容表|sea_search_content",
            "搜索记录表|sea_search_record",
            "搜索记录统计表|sea_search_statistics",
            "热搜表|sea_search_top"
    };


    public static void main(String[] args) {

        String module = "    <mxCell id=\"lvRyfLu55nn_sz-2qaD7-{}\" value=\"&lt;p style=&quot;margin: 4px 0px 0px; text-align: center;&quot;&gt;&lt;b&gt;&lt;u&gt;{}&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;margin: 4px 0px 0px; text-align: center;&quot;&gt;&lt;b&gt;&lt;u&gt;{}&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;\" style=\"verticalAlign=top;align=left;overflow=fill;fontSize=12;fontFamily=Helvetica;html=1;strokeColor=#003366;shadow=1;fillColor=#D4E1F5;fontColor=#003366\" vertex=\"1\" parent=\"1\">\n" +
                "      <mxGeometry x=\"10\" y=\"{}\" width=\"130\" height=\"40\" as=\"geometry\" />\n" +
                "    </mxCell>";

        int high = 1500;
        int num = 120;
        for (String ch : nameCh) {
            String[] split = ch.split("\\|");
            String name = split[0];
            String table = split[1];
            String format = StrUtil.format(module, num += 1, table, name, high += 50);
            System.out.println(format);
        }

    }

}
